<wxs src="../../utils/common.wxs" module="filter" />
<view class='floatView'>

    <image class="edit" wx:if='{{!type}}' src="../../image/shequ/publish_posts.png" bindtap="turnPage"/>
    <image class="edit" wx:if='{{type}}' src="../../image/to-home.png" bindtap="turnPage"/>
    <button open-type='share' class="share">
        <image mode='scaleToFill' src="../../image/shequ/share.png" />
    </button>
</view>

<image-detail wx:if='{{showImageDetail}}' list='{{imageList}}' num='{{num}}' bindonClose='onClose' bindonLeft='onLeft' bindonRight='onRight'></image-detail>

<view>
    <view class="swiper_header">
        <swiper indicator-dots="true"
            autoplay="{{autoplay}}" 
            indicator-color="#66ffffff" 
            indicator-active-color="#ccffffff"
            interval="{{interval}}" 
            duration="{{duration}}">
            <block wx:for="{{obj.wxEquipmentPic.length==0?imgUrls:obj.wxEquipmentPic}}">
              <swiper-item class="swiper_list">
                <image src="{{item.url}}" mode="scaleToFill"  />
              </swiper-item>
            </block>
        </swiper>
    </view>
    <view class="header_content">
        <view class="title">{{obj.title}}</view>
        <view class="price" wx:if='{{obj.price==0}}'>面议</view>
        <view class="price" wx:if='{{obj.price>0}}'>{{obj.price}}万</view>
        <view class="mess">
            <view>
                <image mode="widthFix" src="../../image/device/see_icon.png"/>
                <text>查看{{obj.browseNum}}次</text>
            </view>
            <view>数量:{{obj.num}}</view>
            <view>{{filter.flitTime(obj.created)}}</view>
           <!--  <view bindtap='collectequ'>
                <image mode="widthFix" src="../../image/device/collection_icon.png"/>
                <text>收藏</text>
            </view> -->
           
        </view>
        <navigator url="/pages/bx/bx?type=2&equId={{equId}}" hover-class="navigator-hover">
        <view class='baoxian'>
            <view><image class="icon1" src="../../image/linshi/bx.png" /><label>保费低至600元       低保费/高保额/快速办理/极速理赔</label> <text>></text></view>
        </view>
        </navigator>

    </view>
    <view class="circle"></view>
    <view class="basic_info">
        <view class="tabbar">
            <text >基本信息</text>
            <text>设备编号：{{obj.code}}</text>
        </view>
        <view class="device_mess">
            <view class="mess_item">
               <view class="mess_tpye">
                    <view>设备类型</view>
                    <view>{{obj.type==10?"塔吊":"施工电梯"}}</view>
               </view>
            </view>
            <view class="mess_item">
                <view class="mess_tpye">
                    <view>所在地</view>
                <view>{{obj.province}}{{obj.city}}</view>
                </view>
            </view>
            <view class="mess_item">
                <view class="mess_tpye">
                    <view>发布时间</view>
                <view>{{filter.flitTime(obj.updated)}}</view>
                </view>
            </view>
            <view class="clear"></view>
        </view>
    </view>
    <view class="circle"></view>
    <view class="detail_desc">
        <view class="tabbar" style='font-weight: bold;'>详细描述</view>
        <view class="desc_info">
            <text>{{obj.des}}</text>
            <image bindtap='showImage' data-code="{{obj.wxEquipmentPic}}" data-num='{{index}}' mode="widthFix" wx:for='{{obj.wxEquipmentPic}}' src="{{item.url}}"/>
           
        </view>
    </view>
    <view class="circle"></view>
    <view class="detail_desc">
        <view class="tabbar" style='font-weight: bold;'>相似设备</view>
        <product-list wx:for="{{productList}}" wx:key="index" wx:for-item="item" item="{{item}}"></product-list>
    </view>
    <view class="fixed_height"></view>

    <view class="fixed_bottom">
        <view bindtap="eredarClick" data-code='{{obj.wxUser.openid}}'>

            <image  src="{{obj.wxUser.avatarUrl}}"/>
            <text>{{obj.name}} </text>
            <!-- <label>已认证</label> -->
            <!-- <image src="../../image/certified_icon.png"/> -->
        </view>
        <view bindtap='callPhone' data-code='{{obj.phone}}'>
            <image mode="widthFix" src="../../image/eredar/phone_icon_white.png"/>
            <text>打电话</text>
        </view>
    </view>
    <view class="fixed_bottom1">
        <view class='checkOut'>
            <image  src="../../image/device/aa.png" />
           <label>点击头像进入TA的店铺</label> 
        </view>
        <view class='msg'><image mode="widthFix" src="../../image/eredar/tips_icon_daren.png" /><text>请告诉TA：我是从塔塔看到的</text></view>
  </view>
</view>